package com.dnfm.game.equip.service;

import com.dnfm.game.equip.model.MonsterAttribute;
import com.dnfm.game.equip.model.RoleAttribute;
import com.dnfm.game.equip.pojo.EquipAttribute;

public class TestDemo {


    public static void main(String[] args) {

        EquipAttribute base = new EquipAttribute();
        base.setBasePower(790.0);
        base.setAttributeEnhanced(15.0);
        base.setHit(237.0);
        base.setHitRate(0.05);
        base.setFixedAttack(570.731707);
        base.setDamageIncrease(0.65);


        MonsterAttribute monsterAttribute = new MonsterAttribute();
        monsterAttribute.setMonsterLevel(65.0);
        monsterAttribute.setMonsterDefense(22955.0);

        RoleAttribute roleAttribute = new RoleAttribute();


        System.out.println("面板攻击"+PanelService.getPanelAct(base.getBasePower(), base.getBaseAttack(), 1.0));

        Double skill = 7.38;

        Double act = DamageService.computeAttack(base);
        System.out.println(act);
        Double power = DamageService.computePower(base);
        System.out.println(power);
        Double strike = DamageService.computeCriticalStrikeDamage(base);
        System.out.println(strike);
        Double def = DamageService.computeDefense(base, roleAttribute, monsterAttribute);
        Double damageIncrease = DamageService.computeDamageIncrease(base);
        Double reaAct = skill * act * power * strike * def * damageIncrease;

        System.out.println("realAct " + reaAct);
        System.out.println("max"+reaAct*1.1);
        System.out.println("min"+reaAct*0.9);
    }









}
